package model

import (
	"gorm.io/gorm"
)

type FriendReq struct {
	Id        uint           `gorm:"column:id;type:bigint UNSIGNED;primaryKey;not null;" json:"id"`
	SendId    uint           `gorm:"column:send_id;type:bigint UNSIGNED;not null;default:0;" json:"send_id"`
	ReceiveId uint           `gorm:"column:receive_id;type:bigint UNSIGNED;not null;default:0;" json:"receive_id"`
	Status    string         `gorm:"column:status;type:varchar(30);not null;" json:"status"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}

func (f *FriendReq) TableName() string {
	return "friend_req"
}
